<?php
namespace app\controller;

use app\model\AdminModel;

class IndexController extends \core\Core
{
    public function index()
    {

        //echo $_GET['id'];
        $model = new AdminModel();
        $rs = $model->lists();
        //dump($rs);

        $data = $rs;
        $this->assign('data', $data);
        $this->display('index.html');

    }
}